<?php
/**
 * @ Fmash Top System
 * @ version: 3.0
 * @ author: i.coffee.smile@mail.com
 * @ date:2011-1-28
 * @ file:logout.php $20
 */
include_once 'function.php';
unset($_COOKIE);

setcookie('UID','NULL',time()-1);
setcookie('Uname','NULL',time()-1);
setcookie('FMASH','NULL',time()-1);
setcookie('DOS','NULL',time()-1);
if(isset($_GET['from']))
{
	$url = de_url($_GET['from']);
	header("location:$url");
}else{
	header('location:index.php');
}